package com.example.hrms.Service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.hrms.Entity.Medicaldocuments;
import com.example.hrms.Mapper.MedicaldocumentsMapper;
import com.example.hrms.Service.MedicaldocumentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicaldocumentsServiceImpl extends ServiceImpl<MedicaldocumentsMapper, Medicaldocuments> implements MedicaldocumentsService {
    @Autowired
    private MedicaldocumentsMapper medicaldocumentsMapper;

    @Override
    public void AddMedMoc(Medicaldocuments medicaldocuments) {
        medicaldocumentsMapper.AddMedMoc(medicaldocuments);
    }

    @Override
    public List<Medicaldocuments> All() {
        return medicaldocumentsMapper.All();
    }

    @Override
    public List<Medicaldocuments> Find(int id){
        return medicaldocumentsMapper.Find(id);
    }

    @Override
    public void Del(int id) {
        medicaldocumentsMapper.Del(id);
    }

    @Override
    public void Update(Medicaldocuments medicaldocuments) {
        medicaldocumentsMapper.Update(medicaldocuments);
    }
}

